package com.xjt.wx_admin;

import com.xjt.wx_admin.netty.CoordinationNettyServer;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@MapperScan("com.xjt.wx_admin.mapper")
public class WxAdminApplication implements CommandLineRunner {

    @Autowired
    CoordinationNettyServer coordinationNettyServer;

    public static void main(String[] args) {
        SpringApplication.run(WxAdminApplication.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        coordinationNettyServer.start();
    }
}
